find_package(Qt4 REQUIRED QtCore QtGui)
if (ENABLE_TESTING)

    set(udocktest_SOURCES udocktest.cpp)
    set(udocktest_HEADERS udocktest.h)

    qt4_wrap_cpp(udocktest_SOURCES_MOC ${udocktest_HEADERS})
    add_executable(udocktest ${udocktest_SOURCES_MOC} ${udocktest_SOURCES})
    target_link_libraries(udocktest ${QT_QTTEST_LIBRARY} ${udock_LIBRARIES} ${QT_LIBRARIES} udock )

    add_test(NAME udocktest COMMAND udocktest)

endif()